Hello, is there a way of suppressing/redirecting the error message, using no/lastError didn't work? Thank you. http://www-01.ibm.com/support/docview.wss?uid=swg21396976 *got the attached error message when attempting to save the module. -Jim EHcnck - Wed Jul 10 09:22:12 EDT 2013 |
Re: redirect error message Hi, What kind of operation do you want to trap? Regards |
Re: redirect error message Go to the key:
Add/Modify the Value Name:
Set it to String Value Type:
Set the Value Data to a FilePath:
-Adam |
Re: redirect error message Adamarla - Thu Jul 11 04:18:03 EDT 2013 Go to the key:
Add/Modify the Value Name:
Set it to String Value Type:
Set the Value Data to a FilePath:
-Adam This didn't work.
sample error I would like to redirect
Module m = read("/New Family Car Project/Requirements/System Requirements", true) -Jim |
Re: redirect error message as far as I know there is no single way to trap all kinds of errors that occur, as you already saw when noError didn't work. I admit that I have never seen this timeout error. To me this sounds like a severe problem which occurs in rare situations which should be solved somehow - I'm not sure if it can be trapped.
As for your last example: Still not sure, which situation exactly you want to avoid / trap. m = module (item(xx)) can be trapped with noError(), but if you write your code more defensively, this will not occur. You could write your code like
You should not close modules unless you are really sure that m is a valid module - otherwise you might get protection faults - and you don't want this :-)
hth Mike |